//
//  common.swift
//  zhangmiSinweibo
//
//  Created by zhangmi on 16/5/20.
//  Copyright © 2016年 Paramount Pictures. All rights reserved.
//

import UIKit

//在同一个命名空间下, 所有的文件共享
//屏幕的宽和高
let ScreenWidth = UIScreen.mainScreen().bounds.width
let ScreenHeight = UIScreen.mainScreen().bounds.height

//用户登录授权配置信息
let client_id = "2415576795"
let client_secret = "1a89e1e2c9ccaae020ef8e082da2b07f"
let redirect_uri = "https://www.baidu.com/"

//定义通知的名称
let SwitchRootViewController = "SwitchRootViewController"


//定义通用错误信息
let AppErrorTip = "网络君正在睡觉,请稍后再试"

let sharedDF = NSDateFormatter()

func randomColor() -> UIColor {
    let red = CGFloat(random() % 256) / 255.0
    let blue = CGFloat(random() % 256) / 255.0
    let green = CGFloat(random() % 256) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}



